﻿using Domain.Entitys;
using Microsoft.EntityFrameworkCore;
using Microsoft.EntityFrameworkCore.Metadata.Builders;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace EFCore.Configers
{
    internal class SGConfiger : IEntityTypeConfiguration<SG>
    {
        public void Configure(EntityTypeBuilder<SG> builder)
        {
            builder.ToTable(nameof(SG));
            builder.HasKey(c => c.SgrId);
            builder.Property(c => c.SalaryGrantId);
            builder.Property(c => c.SalaryStandardId);
            builder.Property(c => c.FirstKindId);
            builder.Property(c => c.FirstKindName);
            builder.Property(c => c.SecondKindId);
            builder.Property(c => c.SecondKindName);
            builder.Property(c => c.ThirdKindId);
            builder.Property(c => c.ThirdKindName);
            builder.Property(c => c.HumanAmount);
            builder.Property(c => c.SalaryStandardSum);
            builder.Property(c => c.SalaryPaidSum);
            builder.Property(c => c.Register);
            builder.Property(c => c.RegistTime);
            builder.Property(c => c.Checker);
            builder.Property(c => c.CheckTime);
            builder.Property(c => c.CheckStatus);
        }
    }
}
